package com.nine.news.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * (UserInfo)表实体类
 *
 * @author makejava
 * @since 2023-03-22 14:51:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user_info")
public class UserInfo  {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private String imgurl;

    private Integer sex;

    private Date birthday;

    private String info;

    private Date createTime;

    private Date updateTime;

    public UserInfo(Integer uid) {
        this.uid = uid;
        this.createTime = new Date();
        this.updateTime = new Date();
    }
}

